package cn.zhouchao.org.domain;

import cn.zhouchao.basic.domain.BaseDomain;
import cn.zhouchao.user.domain.Logininfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long managerId;
    private Long parentId;
    //对象
    private Employee manager;
    private Department parent;
    //子级部门
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();
    private Logininfo loginf;

}
